package com.unionpay.mpds.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
import com.unionpay.mpds.util.Pager;
import com.unionpay.mpds.dao.PosAppDao;
import com.unionpay.mpds.model.PosApp;
import com.unionpay.mpds.service.PosAppService;

/**
 * 
 * @description 自动生成 service
 *
 */
@Service
public class PosAppServiceImpl extends BaseServiceImpl implements PosAppService {
	
	@Autowired
	private PosAppDao posAppDao;
	
	
	
	
	
	//====================== 基本 C R U D 方法  ===========================
	public PosApp get(String id) {
		return posAppDao.get(id);
	}
	
	public List<PosApp> getAll() {
		return posAppDao.findAll();
	}
	
	public List<PosApp> findByParam(int size, Map<String, Object> params) {
		return posAppDao.findListByParamMap(size, params);
	}
	
	public Pager<PosApp> findPager(int pageNo, int pageSize, Map<String, Object> params) {
		return 	posAppDao.findByParamMap(pageNo, pageSize, params);
	}
	
	public void save(PosApp entity) {
		posAppDao.save(entity);
	}
	
	public void update(PosApp entity) {
		posAppDao.update(entity);
	}
	
	public void delete(String id) {
		posAppDao.delete(id);
	}
	
}

